package com.jkm.boss.service.impl;

import com.jkm.boss.dao.BasicChannelDao;
import com.jkm.boss.service.BasicChannelService;
import com.jkm.boss.entity.BasicChannel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by shitou on 17/4/10.
 */
@Service
public class BasicChannelServiceImpl implements BasicChannelService {

    @Autowired
    private BasicChannelDao basicChannelDao;

    @Override
    public List<BasicChannel> selectAll() {
        return this.basicChannelDao.selectAll();
    }

    @Override
    public BasicChannel selectById(long id) {
        return this.basicChannelDao.selectById(id);
    }

    /**
     * {@inheritDoc}
     * @param basicChannel
     */
    @Override
    public void update(BasicChannel basicChannel) {
        this.basicChannelDao.update(basicChannel);
    }
}

